#!/usr/bin/node
const log=console.log;
log(`${__dirname}`);
log(`${__filename}`);
//method1
var file=__dirname+"/view/base.html";

//method2
var file;
switch(process.platform){
  case "linux":
    file=__dirname+"/view/base.html";
    break;
  case "win32":
    file=__dirname+"\view\base.html";
    break;
  default:
    file="error";
}

//method3
const path=require("path");
file=path.join(__dirname,"view","base.html");

